import axios from '@/utils/axios/http'

/**
 * 新增审核表
 */
export function addAudit(data) {
  return axios({
    url: '/audit/addAudit',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

/**
 * 查询个人审核记录
 */
export function getSelfAudit(data) {
  return axios({
    url: '/audit/getSelfAudit',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

/**
 * 查询所有店家的审核记录
 */
export function getAllAudit() {
  return axios({
    url: '/audit/getAllAudit',
    headers: {
      isToken: false
    },
    method: 'get',
  })
}

/**
 * 更新审核结果
 */
export function auditResult(data) {
  return axios({
    url: '/audit/auditResult',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

